package com.cn.wx.servlet;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class StringReadTest {
    public static void main(String[] args) throws IOException {
        String pathname = "D:\\111\\a\\b\\c\\d\\cc.txt";
        File file=new File(pathname);
        FileReader  fileReader=new FileReader(file);
        int a;
        while ((a = fileReader.read()) != -1) {
            System.out.print((char) a);
        }
//        我们汉字最好用字符流来读取
    }
}
